using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using log4net;

namespace MvcExtExample.Handlers
{
    /// <summary>
    /// Summary description for TestErrorLog
    /// </summary>
    public class TestErrorLog : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            ILog logs = LogManager.GetLogger(typeof(TestErrorLog));
            logs.Error("Excption:这里就是要提示的LOG信息");
            throw new ArgumentNullException("故意引发一个异常");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}